<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery-3.2.1.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
$(function() {
    $("#add").click(function(){
    	 var url = this.href;
    	 var param = {"time":new Date()};
 	   $.get(url,param,function(data){
 		  alert(data.username);
 	   });
 	   return false;
    });
    $("#delete").click(function(){
    	var url = this.href;
    	var param = {"time":new Date()}
    	$.get(url,param,function(data){
    		if(data.result=="没有删除的权限"){
    			alert("没有删除的权限");
    		}
    		else{
    			alert("有删除的权限");
    		}
    	})
    	return false;
    })
    
	});
	
</script>
</head>
<body>
	这是ceo才能访问的页面
	<a href="${pageContext.request.contextPath}/manager/ceoAdd" id="add">必须要有add权限才能访问</a>
	<a href="${pageContext.request.contextPath}/manager/ceoDelete" id="delete">必须要有delete权限才能访问</a>
</body>
</html>